﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

 class ReverseWords
    {
        static void Main(string[] args)
        {
            string sentence = "C# is not C++, not PHP, and not Delphi!";
            char[] spliters = new char[] { ' ','!' };
            string[] words = sentence.Split(spliters,StringSplitOptions.RemoveEmptyEntries);
            Array.Reverse(words);

            for (int i = 0; i <words.Length; i++)
            {
                Console.Write(words[i]+" ");
            }
            Console.WriteLine();
        }
    }

